<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<title>首页</title>
	<link rel="stylesheet" type="text/css" href="css/style.css">
	<link rel="stylesheet" type="text/css" href="css/index.css">
	<script src="js/jquery-3.1.1.min.js"></script>
	<script src="js/autosize.js"></script>
</head>
<body>
	<div class="order-nav">
		<img src="images/logo.png">
		<a href="#"><img src="images/order-nav.png" >订单</a>
	</div>
	<div class="adv">
		<img src="images/adv.png">
	</div>
	<div class="Shuttle">
		<div class="pick clear">
			<a class="rb">接机</a>
			<a>送机</a>
		</div>
		<div class="clear"></div>
		<div id="pickup" style="display: block;">
			<p><a href="#"><img src="images/flight.png">选择接机航班</a></p>
			<p><a href="#"><img src="images/time.png">送达目的地</a></p>
		</div>
		<div id="drop-off" style="display: none;">
			<p><a href="#"><img src="images/flight.png"></a>选择接机航班</p>
			<p><a href="#"><img src="images/time.png"></a>送达目的地</p>
			<p><a href=""><img src="images/his-content.png"></a>用车时间（当地时间）</p>
		</div>
	</div>
<script type="text/javascript">
	$(function(){
		$(".pick").delegate("a","click",function(){
			$(this).addClass("rb");
			$(".pick a").not(this).removeClass("rb");
			// 接机
			if ($(this).index()==0) {	
				$("#pickup").css("display","block");
				$("#drop-off").css("display","none");
			}
			// 送机
			if ($(this).index()==1) {	
				$("#drop-off").css("display","block");
				$("#pickup").css("display","none");
			}
		});


	})
</script>



</body>
</html>